<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let arr = []
    for(let i = 100;i<=999;i++){
        let gw = i % 10
        let sw = parseInt((i / 10)) % 10
        let bw = parseInt(i / 100) 
        if(Math.pow(gw,3) + Math.pow(sw,3) + Math.pow(bw,3) == i) arr.push(i)
    }
    console.log(arr);
</script>
</html>